package com.bjsxt.commom.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import com.bjsxt.commom.controller.BasicController;
import com.bjsxt.commom.util.ConstantFinalUtil;

@Component("commonInterceptor")
public class CommonInterceptor extends HandlerInterceptorAdapter
{
	
	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception
	{
		BasicController.response = response ;
		BasicController.request = request ;
		return true;
	}
	
}
